package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface DictionaryMapper {

    List<Dictionary> queryList(Dictionary dictionary);

    Dictionary queryByCode(@Param("code") String code);

    int add(Dictionary usersRole);

    int update(Dictionary usersRole);

    int deleteById(Integer id);

}
